import {MiddlewareConsumer, Module, NestModule, RequestMethod } from '@nestjs/common';
import { UserService } from './user.service';
import { UserController } from './user.controller';
import { Test } from './test.service';
import { Test2 } from './test2.service';
import { Logger } from './Logger';

@Module({
  controllers: [UserController],
  providers: [UserService],
  exports:[UserService]
})
export class UserModule implements NestModule{
  configure(consumer: MiddlewareConsumer) {
      consumer.apply(Logger).forRoutes({path:'v1',method:RequestMethod.GET})
  }
}
